package com.etl.sys.controller;

import com.etl.sys.entity.SysTask;
import com.etl.sys.service.ISysTaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 任务表 前端控制器
 * </p>
 *
 * @author chenfenghai
 * @since 2020-11-03
 */
@Slf4j
@RestController
@RequestMapping("/task")
public class SysTaskController {

    @Autowired
    ISysTaskService sysTaskService;

    @GetMapping("/list")
    public List<SysTask> list() {
        return sysTaskService.list();
    }
}
